package com.chapter4.lianxi.demo2;

public class test {
    public static void main(String[] args) {

        Person p1 = new Person(
                "小一",23,true,null);
        Person p2 = new Person(
                "小二",21,false,new Person());
        Person p3 = new Person(
                "小三",23,true,null);
        Person p4 = new Person(
                "小四",18,false,null);
        Person p5 = new Person(
                "小五",22,false,null);


        p1.marry(p2);
        p1.marry(p3);
        p1.marry(p4);
        p1.marry(p5);

    }

}
